import request from '@/utils/request';

// 新增
export const addUAVcheck = (data: any) => {
  return request({
    url: '/business/check',
    method: 'post',
    data: data
  });
};

// 获取列表
export const getUAVcheck = (data: any) => {
  return request({
    url: '/business/check/list',
    method: 'get',
    params: data
  });
};

// 获取详细信息
export const getUAVcheckInfo = (data: any) => {
  return request({
    url: '/business/check/' + data,
    method: 'get'
  });
};

// 修改详细信息
export const putUAVcheckInfo = (data: any) => {
  return request({
    url: '/business/check',
    method: 'put',
    data: data
  });
};

// 导出
export const exportUAVcheck = (data: any) => {
  return request({
    url: '/business/check/word/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  });
};

// 删除照片
export const deteleUAVImg = (data: any) => {
  return request({
    url: '/business/img/' + data,
    method: 'delete'
  });
};

// 删除照片
export const deteleUAV = (data: any) => {
  return request({
    url: '/business/check/' + data,
    method: 'delete'
  });
};

// 获取详细信息
export const getDateList = () => {
  return request({
    url: '/business/check/getDateList',
    method: 'get'
  });
};
